<?php

use Illuminate\Support\Facades\Route;

Route::get('/', 'Blog\ArticleController@index')->name('article.index');
Route::match(['GET', 'POST'], '/p/{id}', 'Blog\ArticleController@show')->name('article.show');
//Route::get('/t/{slug}', 'Blog\ArticleController@show')->name('show');
Route::get('/c/{id}', 'Blog\ArticleController@category')->name('article.category');
//Route::get('/c/{slug}', 'Blog\ArticleController@show');
Route::get('/archives', 'Blog\ArticleController@archives')->name('article.archives');
Route::post('/search', 'Blog\ArticleController@search')->name('article.search');